//
//  MqInfoTopicDetailHeadView.m
//  Meiqi
//
//  Created by 王郑 on 16/1/16.
//  Copyright © 2016年 KFC. All rights reserved.
//

#import "MqInfoTopicDetailHeadView.h"

@implementation MqInfoTopicDetailHeadView

- (instancetype)initWithFrame:(CGRect)frame
{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        _topicImageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 100 * kHeightBase)];
      //  _topicImageV.backgroundColor = [UIColor greenColor];
        [self addSubview:_topicImageV];
        
        UILabel *lineLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(0, _topicImageV.bottom, 5, 50 * kHeightBase)];
        lineLabel1.backgroundColor = [UIColor redColor];
        [self addSubview:lineLabel1];
        
        UILabel *introceLabel = [[UILabel alloc] initWithFrame:CGRectMake(lineLabel1.right, lineLabel1.top, kScreenWidth - lineLabel1.width, lineLabel1.height)];
        introceLabel.text = @"      专题介绍";
        introceLabel.font = [UIFont systemFontOfSize:18];
        [self addSubview:introceLabel];
        
        UILabel *fengeLine1 = [[UILabel alloc] initWithFrame:CGRectMake(0, lineLabel1.bottom, kScreenWidth, 1*kHeightBase)];
        fengeLine1.backgroundColor = [UIColor grayColor];
        [self addSubview:fengeLine1];
        
        
        
        _introLabel = [[UILabel alloc] initWithFrame:CGRectMake(lineLabel1.right, lineLabel1.bottom, kScreenWidth - 2*lineLabel1.right, 150 * kHeightBase)];
       
        _introLabel.numberOfLines = 0;
        [self addSubview:_introLabel];
        
        UILabel *lineLabel2 = [[UILabel alloc] initWithFrame:CGRectMake(0, _introLabel.bottom + 10 * kHeightBase,lineLabel1.width, lineLabel1.height)];
        lineLabel2.backgroundColor = [UIColor redColor];
        [self addSubview:lineLabel2];
        
        UILabel *fengeLine2 = [[UILabel alloc] initWithFrame:CGRectMake(0, lineLabel2.top - 1*kHeightBase, kScreenWidth, 1*kHeightBase)];
        fengeLine2.backgroundColor = [UIColor grayColor];
        [self addSubview:fengeLine2];
        
        UILabel *fengeLine3 = [[UILabel alloc] initWithFrame:CGRectMake(0, lineLabel2.bottom, kScreenWidth, 1*kHeightBase)];
        fengeLine3.backgroundColor = [UIColor grayColor];
        [self addSubview:fengeLine3];
        
        
        UILabel *newsLabel = [[UILabel alloc] initWithFrame:CGRectMake(introceLabel.left, lineLabel2.top, introceLabel.width, introceLabel.height)];
        newsLabel.text = @"      最新资讯";
        newsLabel.font = [UIFont systemFontOfSize:18];
        [self addSubview:newsLabel];
        
    }
    
    return self;
}
@end
